<?php
  //Loader::loadFile('config.php', 'modules/DeGIS');
  /**
  * initialise module
  *
  */
  function VoteMember_init() {

    if (!DBUtil::createTable('votemember_layer')) {
        return false;
    }

		//VoteMember_alter();

    return true;
  }
  
  function VoteMember_alter() {

		$sql = "ALTER IGNORE TABLE zk_votemember_layer ADD UNIQUE INDEX dupidx (layer_uid )";
		DBUtil::executeSQL($sql);

    return true;
  }  

  function VoteMember_delete() {
    DBUtil::dropTable('votemember_layer');
    return true;
  }

